Read Sub-unit
Description
Obtains the current state of all inputs of a sub-unit.
Prototype
DWORD PIPLX_ReadSub(SESSION session, DWORD CardNum, DWORD InSub, DWORD *Data, DWORD DataLen);
Parameters:
Session - The session variable obtained from the PICMLX_Connect call
CardNum - card number
InSub - input sub-unit number
Data - pointer to variable to receive result
DataLen - length of the above array in BYTES (Note - BYTES not DWORDs !)
Returns:
Zero for success, or non-zero error code.
Note
Input sub-units do not exceed 32 bits in size, so an array is not necessary to receive the result.